package com.moji.controller.api;


import com.moji.common.base.ApiResult;
import com.moji.service.MjOrderDetailService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 订单明细表 前端控制器
 * </p>
 *
 * @author ccl
 * @since 2024-08-13
 */
@RestController
@RequestMapping("web/auth/mjOrderDetail")
@Api(tags = "订单明细web相关接口(控制中心)", value = "订单明细web相关接口(控制中心)")
public class MjOrderDetailController {

    @Resource
    private MjOrderDetailService mjOrderDetailService;

    @GetMapping("/delete")
    @ApiOperation(value = "订单明细_删除",response = Boolean.class)
    public ApiResult delete(@RequestParam("id") Long id){
        return ApiResult.ok(mjOrderDetailService.delete(id));
    }

}

